Skip to main content

regular

Type

keyword

Summary

Designates the paint tool used to draw regular polygon|regular polygons. It also specifies, through the style property, that a graphic is a regular polygon.

Syntax

regular

Description

Use the regular keyword to paint a regular polygon with the penColor or to change a graphic to a regular polygon shape.

Regular polygons are geometric shapes whose sides are all the same length, such as squares, equilateral triangles, hexagons, and so on. (You set the number of sides with the polySides property.)

When using the Regular tool, the cursor is a crosshairs shape (over stack windows) or an arrow (anywhere else). This tool is used to draw a polygon in the penColor, filled with the brushColor (or brushPattern). The number of sides is determined by the global polySides property.

If you try to paint with the Regular tool on a card that has no images, an image the size of the card is created to hold the painting. If the current card already has one or more images, painting outside the image has no effect.

Setting the style of a graphic to "regular" makes the graphic into a regular polygon. Regular polygon graphics, unlike painted polygons, can be changed and reshaped: use the polySides properties to change the shape.

Important

You can use the synonyms--regular polygon, reg polygon, regular poly, and reg poly--to choose the regular paint tool, but not to set a graphic's style property.

Examples

set the style of graphic "All Angles" to regular
choose regular polygon tool

command: global, choose

glossary: property, paint tool, graphic, keyword, polygon, regular polygon

object: graphic

property: polySides, style, brushColor, properties, brushPattern

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?